/**
 * 
 */
package sqs.model;

import java.util.ArrayList;
import java.util.List;

import sqs.exception.FeatureNotAvailableException;


/**
 * @author kjleng
 *
 */
public class RatingQuestion extends Question {
	private List<RatingQuestionAnswer> ratingQuestionAnswers = new ArrayList<RatingQuestionAnswer>();
	private List<RatingOption> options = new ArrayList<RatingOption>();
	
	public void addAnswer(Answer ans){
		ratingQuestionAnswers.add((RatingQuestionAnswer)ans);
	}
	
	public List<RatingQuestionAnswer> getRatingQuestionAnswers() {
		return ratingQuestionAnswers;
	}

	public void setRatingQuestionAnswers(
			List<RatingQuestionAnswer> ratingQuestionAnswers) {
		this.ratingQuestionAnswers = ratingQuestionAnswers;
	}
	public Answer getAnswer(){
		return new RatingQuestionAnswer();
	}
	
	public List getOptions(){
		return options;
	}
	public void setOptions(List options) {
		this.options = (List<RatingOption>)options;
	}

	public Option createOption(){
		return new RatingOption();
	}

	public String getLayout(){
		throw null;
	}
	public void setLayout(String layout){
		//do nothing, as this feature is not available to rating question
	}
	public Scale createScale(){
		return new Scale();
	}
}
